package com.machine.filling.base;

import android.content.Context;
import android.support.v7.widget.RecyclerView;

/**
 * Created by Administrator on 2018/2/3 0003.
 */

public abstract class BaseRecyclerAdapter<T extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<T> {
    protected Context mContext;
    protected IOnItemClickListener onItemClickListener;

    public BaseRecyclerAdapter(Context mContext) {
        this.mContext = mContext;
    }

    public interface IOnItemClickListener{
        void onClickItem(int position);
    }

    public void setOnItemClickListener(IOnItemClickListener onItemClickListener) {
        this.onItemClickListener = onItemClickListener;
    }
}
